package com.shen.pojo;

/**
 * Author:shen
 * CreateDate:2020/4/28.
 * Function:
 */
public class Car02 {
    private String  color;//外观
    private double price;//价格
    private double consumption;//油耗

    public Car02() {
    }

    public Car02(String color, double price, double consumption) {
        this.color = color;
        this.price = price;
        this.consumption = consumption;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getConsumption() {
        return consumption;
    }

    public void setConsumption(double consumption) {
        this.consumption = consumption;
    }

    @Override
    public String toString() {
        return "Car02{" +
                "color='" + color + '\'' +
                ", price=" + price +
                ", consumption=" + consumption +
                '}';
    }

    public void start(){
        System.out.println("启动方法");
    }
    public void stop(){
        System.out.println("停止方法");
    }
    public void honking(){
        System.out.println("鸣笛方法");
    }
}
